package com.uu.custom.yingbang.facade.restful;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;



/**
 * User : LiuKe
 * Date : 2017/1/11
 * Time : 10:11
 */
@EnableTransactionManagement
@SpringBootApplication
@ComponentScan(basePackages = {"org.uu.skull","com.uu.custom.yingbang.facade"})
public class Application extends SpringBootServletInitializer{

    //war包部署必须
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(Application.class);
    }
    public static void main(String[] args) {
            SpringApplication.run(Application.class, args);
        }

}
